// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3) 

package com.nnee.p_fk;

import android.content.Context;
import android.content.pm.PackageManager;
import android.content.pm.PackageManager.NameNotFoundException;
import android.content.res.Resources;
import android.graphics.drawable.Drawable;

// Referenced classes of package com.nnee.p_fk:
//            h

public class cls_f
    implements cls_h
{

    public cls_f(Context context, String s)
    {
        b = context.getApplicationContext();
        c = s;
        try {
			d = b.getPackageManager().getResourcesForApplication(c);
		} catch (NameNotFoundException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
    }

    private int d(int i)
    {
        String s = b.getResources().getResourceTypeName(i);
        String s1 = b.getResources().getResourceEntryName(i);
        return d.getIdentifier(s1, s, c);
    }

    public Drawable a(int i)
    {
        int j = d(i);
        Drawable drawable;
        if(j <= 0)
            drawable = null;
        else
            drawable = d.getDrawable(j);
        return drawable;
    }

    public int b(int i)
    {
        int j = d(i);
        if(j <= 0)
            throw new android.content.res.Resources.NotFoundException((new StringBuilder()).append("no resource found for: ").append(i).toString());
        else
            return d.getColor(j);
    }

    public int c(int i)
    {
        return d(i);
    }

    private static final String a = "ApkSkinResources";
    private Context b;
    private String c;
    private Resources d;
}
